<template>
    <div class="recommend">
        <div class="left-title">
            {{ list.texttitle }}
        </div>
        <div class="right-img">
            <van-text-ellipsis :content="list.textdescword" rows="2"/>
        </div>
        <div class="bottom-text">
            <van-tag type="primary" size="medium" color="#f6eefe" text-color="#a55cf6">{{ list.texttype }}</van-tag>
            <span style="margin-left: 0.2rem;"> {{ list.textcount}}阅读</span>
        </div>
    </div>

</template>

<script setup lang="ts">

import {ref} from 'vue'
defineProps(['list'])
</script>

<style scoped>
/* 整体页面布局样式 */
body {
    font-family: Arial, sans - serif;
    margin: 0;
    padding: 0;
}

.recommend {
    width: 100%;
    height: 3rem;
    border-bottom: 1px solid #f4f5f6;
    
    /* background: rgb(4, 255, 255); */
    padding: 0.5rem 0.2rem 0 0.15rem;
}

.left-title {
    float: left;
    width: 100%;
    height: 0.5rem;
    font-size: 0.3rem;
    /* background: green; */
    /* margin-left: 0.15rem; */
    padding: 0 0 0 0.15rem;
}

.right-img {
    float: left;
    width: 6.5rem;
    height: 1rem;
    font-size: 0.28rem;
    padding: 0 0 0 0.15rem;
    /* background: red; */
}

.bottom-text {
    float: left;
    width: 55%;
    height: 1rem;
    /* background: blue; */
    margin-left: 0.15rem;
    span {
        font-size: 0.25rem;
        color: #999999;
    }
}
</style>